const { Schema } =require("mongoose")
let mongoose =require("./db")

let Mystu=new Schema({
    title:String,
    age:Number
})
let learn = new Schema({
    name:String,
    age:Number,
    sex:String,
    mystu:Mystu
})

let LearnModel =mongoose.model("learn",learn,"learn")
let MystuModel =mongoose.model("mystu",Mystu,"mystu")


module.exports={MystuModel,LearnModel}